import 'package:flutter/material.dart';
import 'package:flutter_app/stateLearn/click_txt.dart';
import 'package:fluttertoast/fluttertoast.dart';

class ToastUtils {
  static void showTip(String msg) {
    Fluttertoast.showToast(
      msg: msg,
      toastLength: Toast.LENGTH_SHORT,
      backgroundColor: Colors.white,
      textColor: Colors.black,
      gravity: ToastGravity.CENTER,
    );
  }

  static void showError(String msg) {
    Fluttertoast.showToast(
      msg: msg,
      toastLength: Toast.LENGTH_SHORT,
      gravity: ToastGravity.CENTER,
      backgroundColor: Colors.red,
      textColor: Colors.white,
    );
  }
}
